﻿using System;
using System.Text;
using JKF.BusinessLayer.BLL;
using JKF.Substructure;

namespace JKF.Web.SMS.Sms_Account
{
    public partial class Dispose : PageBase
    {
        private static StringBuilder sbBuilder = new StringBuilder();
        public string AccountOption
        {
            get
            {
                var bllsmsDicAccount = new bllSMS_DIC_ACCOUNT();

                var dicAccounts =   bllsmsDicAccount.GetModelList("");
                sbBuilder.Clear();
                foreach (var tmpAccont in dicAccounts)
                {
                    sbBuilder.AppendFormat("<option value=\"{0}\">{1}</option>", tmpAccont.ACCOUNT, Server.HtmlEncode(tmpAccont.ACCOUNT));
                }
                return sbBuilder.ToString();
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            MODULE_NAME_EN = "SMS_AMOUNT";

            if (!CheckAction("开通"))
                Response.Redirect("~/noright.htm");
        }
    }
}